#ifndef _ROBOT_H
#define _ROBOT_H    

#define PREDICTOR_NUM		30

struct Predictor{
	double a, b;
	double sum_x, sum_y, sum_xy, sum_xx;
	double save_x[PREDICTOR_NUM], save_y[PREDICTOR_NUM], cur_x, cur_y;
	int count, flag;

	Predictor();
	void add(double x, double y);
	void clear();
	double predict(double dx);
};


#endif
